package it.yuzuojian.com.service.impl;

import it.yuzuojian.com.dao.AdminMapper;
import it.yuzuojian.com.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public boolean verifyPassword(String username, String password) {
        if(adminMapper.verifyPassword(username,password)==null){
            System.out.println(adminMapper.verifyPassword(username,password));
            return false;
        }
        System.out.println(adminMapper.verifyPassword(username,password));
        return true;
    }
}
